﻿@page
@model LoginModel
@{
    ViewData["Title"] = "登录";
}

<div class="container mt-5">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <div class="card">
                <div class="card-header">
                    <h2>用户登录</h2>
                </div>
                <div class="card-body">
                    <form method="post">
                        <div class="mb-3">
                            <label asp-for="Input.Email" class="form-label"></label>
                            <input asp-for="Input.Email" class="form-control" required />
                        </div>
                        <div class="mb-3">
                            <label asp-for="Input.Password" class="form-label"></label>
                            <input asp-for="Input.Password" class="form-control" required />
                        </div>
                        <div class="mb-3 form-check">
                            <input asp-for="Input.RememberMe" class="form-check-input" />
                            <label asp-for="Input.RememberMe" class="form-check-label"></label>
                        </div>
                        <button type="submit" class="btn btn-primary">登录</button>
                        <a asp-page="Register" class="btn btn-outline-secondary ms-2">注册</a>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>